package com.ndbg.demo.gateway.excel;

import com.ndbg.demo.utils.ExcelImportUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

@RestController
@RequestMapping("/ndbg/function/excel")
public class ExcelController {
    @GetMapping("/download/import/template")
    public void downloadImportTemplate(HttpServletResponse response) {
        ExcelImportUtil.downloadImportTemplate(response, "/excel/test.xlsx");
    }
}
